import request from '@/utils/request'

// 查询入伙材料列表
export function listJoinFile(query) {
  return request({
    url: '/waitress/joinFile/list',
    method: 'get',
    params: query
  })
}

// 查询入伙材料详细
export function getJoinFile(fileId) {
  return request({
    url: '/waitress/joinFile/' + fileId,
    method: 'get'
  })
}

// 新增入伙材料
export function addJoinFile(data) {
  return request({
    url: '/waitress/joinFile',
    method: 'post',
    data: data
  })
}

// 修改入伙材料
export function updateJoinFile(data) {
  return request({
    url: '/waitress/joinFile',
    method: 'put',
    data: data
  })
}

// 删除入伙材料
export function delJoinFile(fileId) {
  return request({
    url: '/waitress/joinFile/' + fileId,
    method: 'delete'
  })
}

// 导出入伙材料
export function exportJoinFile(query) {
  return request({
    url: '/waitress/joinFile/export',
    method: 'get',
    params: query
  })
}